﻿using System.Collections.Generic;

namespace EyFramework.Library.Select
{
    /// <summary>
    /// 创建输入器需要的参数封装
    /// </summary>
    public class SelectorData
    {
        public string TitleText { set; get; }
        public bool ShowRowNum { set; get; }

        public bool AlternatingRow { set; get; }

        public List<GridColumnInfo> Columns { set; get; }

        public object GridData { set; get; }

        public int? WindowWidth { set; get; }

        public int? WindowHeight { set; get; }

        public SelectorData()
        {
            ShowRowNum = true;
            AlternatingRow = true;
        }

        public SelectorData(string titleText, bool showRowNum, bool alternatingRow, List<GridColumnInfo> columns, object gridData)
        {
            this.TitleText = titleText;
            this.ShowRowNum = showRowNum;
            this.AlternatingRow = alternatingRow;
            this.Columns = columns;
            this.GridData = gridData;
        }

        public SelectorData(string titleText, List<GridColumnInfo> columns, object gridData)
        {
            this.TitleText = titleText;
            this.ShowRowNum = true;
            this.AlternatingRow = true;
            this.Columns = columns;
            this.GridData = gridData;
        }
    }
}